<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
use think\Db;

class Index extends Common
{
    public function index()
    {
    	// print_r($this->request->param());  //内置request安全对象 不再用$_GET $_POST
        vendor("topthink.think-queue.src.queue.job");
        $redis = new \Redis();
        $redis->connect("127.0.0.1",6379);
//        $res = $redis->set('age',10);
//        $res = $redis->get('age');
//        echo $res;

//        $redis->lPush("list",1);
//        $redis->lPush("list",2);
//        $redis->lPush("list",3);
        $redis->hset("set",'username', "wbr");
        $res = $redis->hget("set",'username');
        echo $res;
        exit();
          return  $this->fetch();
        }
}
